import { post, get } from "utils/fetch";

// 获取消息列表
export const getNoticeList = (data = {}) => {
  return post(`/flow-platform/message/list`, data, { messageType: "close" });
};
//
// 获取消息类型
export const getNoticeType = () => {
  return get(`/flow-platform/message/msgtype`);
};

// 获取消息详情
export const getNoticeDetail = (data = {}) => {
  return get(`/flow-platform/message/detail`, data, { messageType: "close" });
};

// 标记已读
export const updateReadStatus = (data = {}) => {
  return post(`/flow-platform/message/updateReadStatus`, data, {
    messageType: "close",
  });
};
